package jsi.search;

import java.io.FileNotFoundException;
import java.util.HashMap;
import java.util.Map;

import jsi.ws.DictClient;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;



public class Main {

	Log log = LogFactory.getLog(this.getClass());
	
	public Main() {
		
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new Main().go();
		
	}

	public void go() {
		Indexer indexer;
		try {
			indexer = new Indexer();
			indexer.init();
	//		indexer.indexBatch();
	//		indexer.indexIncremental();
			
			String field = "text";
	/*		
			indexer.search("jakub", field);
			indexer.search("java", field);
			indexer.search("tutorial", field);
			indexer.search("Najpierw", field);
			indexer.search("kaczynski", field);
	*/
			indexer.search("LEch", field);

		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (Exception e){
			e.printStackTrace();
		}
	}

}
